<?php
namespace	app\admin\model;
use	think\Model;
class	Shop	extends	Model
{
    protected $table="b2c_admin_addshop";
    

    public	function	getStatusAttr($value)
    {
        $status	=	[-1=>'删除',0=>'不上架',1=>'立即上架',2=>'待审核'];
        return	$status[$value];
    }
    public function setImgSrcAttr($value){
        return json_decode($value,true);
    }
    
}